package com.csglxt.service;

import com.csglxt.base.DaoSupport;
import com.csglxt.domain.Market;
import com.csglxt.domain.OnshelvesInfo;
import com.csglxt.domain.Order;
import com.csglxt.domain.OrderItem;

/**
 * 
 * @ClassName: OnshelvesInfoService
 * @Description: TODO(上架管理 业务层 接口)
 * @author Itchbeilef
 * @date 2015-5-28 下午9:49:43
 * 
 */
public interface OnshelvesInfoService extends DaoSupport<OnshelvesInfo> {
    /**
     * 
     * @Title: UpGoodsNumbyOrderItem
     * @Description: TODO(跟据单据明细信息增加或者减少相对应商品在上架信息表里的数量,并根据商品所在的超市来操作)
     * @param item
     *            ：单据明细项 jia：增加或减少 market：超市
     * @return
     * @throws
     */
    public int UpGoodsNumbyOrderItem(OrderItem item, boolean jia, Market market);

    /**
     * 
     * @Title: UpGoodsNumbyOrderItems
     * @Description: TODO(跟据单据信息增加或减少上架表对应商品数量)
     * @param order
     *            ：单据信息 jia：增加或减少
     * @return
     * @throws
     */
    public int UpGoodsNumbyOrderItems(Order order, boolean jia);

    /**
     * 
     * @Title: queryGoodsNumbygoodsid
     * @Description: TODO(根据 商品ID 超市ID 来查询 上架商品数)
     * @param Goodsid
     *            商品ID marketid 超市ID
     * @return
     * @throws
     */
    public int queryGoodsNumbygoodsid(String Goodsid, String marketid);
}
